//
//  InsuranceConditionsViewController.m
//  PhotoAnnotate
//
//  Created by Bassem El-Tamimi on 10.03.11.
//  Copyright 2011 ePapyrus GmbH. All rights reserved.
//

#import "InsuranceConditionsViewController.h"
#import "InsuranceTabbarController.h"


@implementation InsuranceConditionsViewController

// The designated initializer.  Override if you create the controller programmatically and want to perform customization that is not appropriate for viewDidLoad.
/*
- (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil {
    self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
    if (self) {
        // Custom initialization.
    }
    return self;
}
*/

- (void)viewDidLoad {
    [super viewDidLoad];
	
	[self setWantsFullScreenLayout:YES];
//	[[UIApplication sharedApplication] setStatusBarHidden:YES];
	
	NSURL *url = [[NSBundle mainBundle] URLForResource:@"EWP_Geschaeftsbedingungen_v2/avb" withExtension:@"html"];
	
	NSURLRequest *request = [NSURLRequest requestWithURL:url];
	
	[webView loadRequest:request];
}


/*
// Override to allow orientations other than the default portrait orientation.
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    // Return YES for supported orientations.
    return (interfaceOrientation == UIInterfaceOrientationPortrait);
}
*/

- (IBAction)closeInsuranceView
{
	[self dismissModalViewControllerAnimated:YES];
    
    /*
	CATransition *transition = [CATransition animation];
	transition.duration = 0.5; 
	transition.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; 
	transition.type = kCATransitionPush;
	transition.subtype = kCATransitionFromBottom;
	transition.delegate = self;
	[self.navigationController.view.layer addAnimation:transition forKey:nil];
	
	[self.navigationController popViewControllerAnimated:NO];
     */
	
}

- (void)didReceiveMemoryWarning {
    // Releases the view if it doesn't have a superview.
    [super didReceiveMemoryWarning];
    
    // Release any cached data, images, etc. that aren't in use.
}

- (void)viewDidUnload {
    [super viewDidUnload];
    // Release any retained subviews of the main view.
    // e.g. self.myOutlet = nil;
}


- (void)dealloc {
    [super dealloc];
}


@end
